//
//  Push.swift
//  uwantgoeasy
//
//  Created by 冯传宝 on 12/11/15.
//  Copyright © 2015 uwantsoft. All rights reserved.
//

import Foundation
class Push: ServerMessage {
    private var id:String=""
    private var channel:String=""
    
    init(json:NSMutableDictionary){
        super.init()
        self.id = json["id"] as! String
        self.channel = json["channel"] as! String
        self.content = json["content"] as! String
        self.executorNumber = json["executorNumber"] as! Int
    }
    
    override func typeCode() -> UInt {
        return 4
    }
    
    var isAckRequired:Bool{
        get{
            if (id==""){
                return false
            }else{
                return true
            }
        }
    }
    
    var _id:String{
        get{
            return id
        }
    }
    var _channel:String{
        get{
            return channel
        }
    }
}